package cn.fboost.mtos.dto.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 更新管理员信息请求
 */
@Data
public class AdminProfileUpdateRequest {
    @NotNull(message = "id不能为空")
    @Positive(message = "id有误")
    private Integer id;

    @Length(min = 1, max = 20, message = "用户名长度限制在1~20个字符")
    private String username;

    private String password;
}
